package com.dty;

import com.dty.data.UserData;
import com.dty.factory.ClassPathXmlApp;
import com.dty.factory.MyBeanFactory;
import com.dty.services.UserService;

import org.dom4j.DocumentException;

/**
 * Hello world!
 *
 */
public class App {
    public static void main(String[] args) throws DocumentException {
        MyBeanFactory factory = new ClassPathXmlApp("spring.xml");
        UserData ud = (UserData) factory.getBean("userData");
        UserService us = (UserService) factory.getBean("userService");
        ud.test("ok!!!");
        us.test("us");
    }
}
